import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-18
 * Time: 20:37
 */
class Student implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Test {



    /*public static void func() {
        int[] arr = {1, 2, 3};
        System.out.println(arr[100]);
    }

    public static void main6(String[] args) {
        func();
        System.out.println("after try catch");
    }*/


    /*public static int getData(){
        Scanner sc = null;
        try{
            sc = new Scanner(System.in);
            int data = sc.nextInt();
            return data;
        }
        catch (InputMismatchException e){
            e.printStackTrace();
        }
        finally {
            System.out.println("finally中代码");
        }
        System.out.println("try-catch-finally之后代码");
        if(null != sc){
            sc.close();
        }
        return 0;
    }
    public static void main5(String[] args) {
        int data = getData();
        System.out.println(data);
    }
*/

    /*public static int func(int a) {
        try {
            int ret = a / 10;
            return ret;

        }catch (NullPointerException nullPointerException) {
            System.out.println("NULLExcpection");
            nullPointerException.printStackTrace();
        }finally {
            return 99;
        }
    }
    public static void main4(String[] args) {
        System.out.println(func(10));
    }*/

  /*  public static void main3(String[] args) {
        //Scanner scanner = new Scanner(System.in);
        try (Scanner scanner = new Scanner(System.in);){
            int a = scanner.nextInt();
            System.out.println(a/0);
        }catch (ArithmeticException a) {
            a.printStackTrace();
        }finally {
            System.out.println("finally执行...");
            //scanner.close();
        }
    }*/

    /*public static void main2(String[] args) {
        try{
            Student student = new Student();
            Student student1 = (Student)student.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        finally {
            System.out.println("finally执行...");
        }

    }
*/
    /*public static void main1(String[] args) {
        try {
            System.out.println(10/0);
        }catch(ArithmeticException a){
            a.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }*/



}
